define(function () {
    return function (res, goods, cont) {
        let str = "";
        for (let j = 0; j < goods.length; j++) {
            for (let i = 0; i < res.length; i++) {
                if (res[i].id === goods[j].id) {
                    str += `<div class="cont1" id="${res[i].id}">
                    <i class="iconfont ${goods[j].status} btn"} ></i >
                        <div class="information">
                            <img src="${res[i].img1}" alt="">
                                <p>${res[i].title}</p>
                                <p>颜色：${res[i].color} 尺码：S</p>
                    </div>
                            <p class="money">${res[i].xmoney}</p>
                            <div class="num">
                                <span class="reduce btn1">-</span>
                                <span class="znum">${goods[j].num}</span>
                                <span class="plus btn1">+</span>
                            </div>
                            <p class="Subtotal">${res[i].money.slice(0, 1)}${res[i].money.slice(1) * goods[j].num}</p >
                            <p class="del">删除</p>
                        </div > `
                }
            }
            cont.html(str)
        }
    }
})